package wire

import (
	"github.com/google/wire"

	"gitee.com/krio/grpc-go-server/cmd/script/handler"
	"gitee.com/krio/grpc-go-server/internal/service/region"
	"gitee.com/krio/grpc-go-server/internal/service/user"
)

// 将New方法声明为Provider，表示New方法可以创建一个被别人依赖的对象,也就是xxx对象
var (
	// CmdHandler
	FillerHandlerProviderSet = wire.NewSet(
		handler.NewUserCmdHandler,
		handler.NewRegionCmdHandler,
	)
	// Service
	FillerServiceProviderSet = wire.NewSet(
		user.NewUserService,
		region.NewRegionService,
	)
)
